package cn.sourcespro.spring.service;

import cn.sourcespro.spring.crudparams.PageInfo;
import cn.sourcespro.spring.entity.User;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * 用户
 *
 * @author 张浩伟
 * @date 2018/07/25
 */
public interface UserService extends UserDetailsService {

    User add(User record);

    User update(User record);

    User findById(Integer id);

    User findByUuid(String uuid);

    List<User> findAll(PageInfo pageInfo);

    int selectCount(PageInfo pageInfo);

    int delete(Integer id);

    int delete(String uuid);

    int delete(User record);

    User findByUsername(String username);
}
